package com.danbay.cloud.account.dto;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

/**
 * @author SJG
 *         2018/1/4.
 */
@Data
public class ChangePwd {
    /**
     * 用户名
     */
    @NotNull(message = "用户名不能为空")
    private String userName;
    /**
     * 旧密码
     */
    @NotNull(message = "旧密码不能为空")
    @Length(min = 6, max = 30, message = "密码长度为6-30")
    private String oldPwd;
    /**
     * 新密码
     */
    @NotNull(message = "新密码不能为空")
    @Length(min = 6, max = 30, message = "密码长度为6-30")
    private String newPwd;
}
